# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
import datetime
from django.conf import settings


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('commodity', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Order',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('status', models.IntegerField(default=0, verbose_name='\u72b6\u6001', choices=[(0, '\u672a\u4ed8\u6b3e'), (1, '\u5df2\u4ed8\u6b3e'), (2, '\u5df2\u5b8c\u6210')])),
                ('create_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='\u521b\u5efa\u65f6\u95f4')),
                ('is_active', models.BooleanField(default=True, verbose_name='\u662f\u5426\u5df2\u5220\u9664')),
                ('name', models.CharField(max_length=255, verbose_name='\u6536\u8d27\u4eba')),
                ('phone', models.CharField(max_length=255, verbose_name='\u7535\u8bdd')),
                ('add_province', models.CharField(max_length=255, verbose_name='\u7701\u5730\u5740')),
                ('add_city', models.CharField(max_length=255, verbose_name='\u5e02\u5730\u5740')),
                ('add_district', models.CharField(max_length=255, verbose_name='\u533a\u5730\u5740')),
                ('add_detail', models.CharField(max_length=255, verbose_name='\u8be6\u7ec6\u5730\u5740')),
                ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='OrderCommodity',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('price', models.CharField(max_length=255, verbose_name='\u5546\u54c1\u4ef7\u683c')),
                ('num', models.CharField(max_length=255, verbose_name='\u5546\u54c1\u6570\u91cf')),
                ('commodity', models.ForeignKey(verbose_name='\u5546\u54c1\u4e3b\u952e', to='commodity.Commodity')),
                ('order', models.ForeignKey(verbose_name='\u8ba2\u5355\u4e3b\u952e', to='order.Order')),
            ],
        ),
        migrations.CreateModel(
            name='Person',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(max_length=255, verbose_name='\u59d3\u540d')),
                ('phone', models.IntegerField(null=True, verbose_name='\u7535\u8bdd')),
                ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
